#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from dragon.locatordetail import LocatorDetail

class LoginPage:
    phoneInput= LocatorDetail('input[placeholder="请输入手机号"]','手机号输入框')
    # self.sendCodeButton= LocatorDetail('div.cp','获取验证码按钮')
    sendCodeButton= LocatorDetail('获取验证码','获取验证码按钮','text')
    codeInput= LocatorDetail('input[placeholder="请输入验证码"]','验证码输入框')
    sendCodeAlert=LocatorDetail('/html/body/div[3]/p','发送验证码提示','xpath')
    submitButton= LocatorDetail('#app > div > div.el-button.el-button--large > span','登录按钮')
    submitAlert= LocatorDetail('/html/body/div[4]/p','登录提示','xpath')
    giftPrompt=LocatorDetail('div.tishiyu','免费天数提示语')

if __name__ == '__main__':
    lp=LoginPage()
    print(lp.sendCodeButton.type)